﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace MYData.Entity.DomainModels.ApiEntity.Input
{
    public class WorkStepInput_Dto
    {
        [Display(Name = "项目主键")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string projectId { get; set; }
        /// <summary>
        /// 结果
        /// </summary>
        [Display(Name = "结果")]
        [Column(TypeName = "bool")]
        [Editable(true)]
        public bool Outcome { get; set; } = false;
        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        [Editable(true)]
        public string? remark { get; set; }
        /// <summary>
        ///返回的结点
        /// </summary>
        [Display(Name = "返回结点")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string? orderId { get; set; }
        /// <summary>
        ///审核的结点
        /// </summary>
        [Display(Name = "当前审核结点")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string auditStepId { get; set; }
    }
    /// <summary>
    /// 条件查询下拉
    /// </summary>
    public class TypeName
    {
        public string Name { get; set; }
        public string Field { get; set; }
    }
}
